package com.lj.graduate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author ljy
 * @since 2023-04-13
 */
@Data
  @TableName("commodity_order_detail")
@ApiModel(value = "OrderDetail对象", description = "")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "commodity_order_id", type = IdType.AUTO)
      private Integer commodityOrderId;

    private Integer commodityId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime commodityOrderTime;

    private Integer userId;

    private Float consumption;

    private String userAdress;
    @TableLogic
    @Version
    private Integer deleted;

    private Integer number;


}
